home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software of the Month Club (Business) 1997 July
/
Software of the Month Club - Business (Volume 239) (July 1997).iso
/
pc
/
code
/
debug
/
memmon.dir
/
00058_Script_58
< prev
next >
Wrap
Text File
|
1995-02-15
|
1KB
|
54 lines
-- Quick and Dirty Monitor color depth movie in a window.
-- Alex Zavatone - 5/27/94 3360 Scott St. #3 SF CA 94123
On DoDelay delay
-- This handler takes the place of the delay command. The delay command only works in a frame script
set startTime = the ticks
set gDelayTime = delay * 60
repeat while the ticks < startTime + gDelayTime
end repeat
end
On ExpandWindow
set wind = getAt(the windowlist, 1)
set leftSide = getAt(the rect of wind, 1)
set topSide = getAt(the rect of wind, 2)
set rightSide = getAt(the rect of wind, 3)
set bottomSide = getAt(the rect of wind, 4)
set the rect of wind = rect(leftSide, topSide, leftSide + 160, bottomSide)
end
on HandleButtons
set the ink of sprite 12 = 0
set the ink of sprite 13 = 0
set the ink of sprite 14 = 0
set the ink of sprite 15 = 0
set the ink of sprite 16 = 0
set the ink of sprite 17 = 0
if the colordepth = 8 then
set the ink of sprite 15 = 34
else
if the colordepth = 16 then
set the ink of sprite 16 = 34
else
if the colordepth = 32 then
set the ink of sprite 17 = 34
else
if the colordepth = 2 then
set the ink of sprite 14 = 4
else
if the colordepth = 1 then
set the ink of sprite 13 = 4
end if
end if
end if
end if
end if
updateStage
end